package com.fuhao.springbootrabbit.controller;

import com.fuhao.springbootrabbit.Service.FanoutService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhang
 * @title: FanoutController
 */
@RestController
public class FanoutController {

    @Autowired
    private FanoutService fanoutService;

    @RequestMapping("/fanoutSend")
    public String fanoutSend(){
        fanoutService.fanoutSend();
        return "sucess";
    }
}
